package ve.usb.crm;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

public class FConectarse extends org.apache.struts.action.ActionForm {
    
    
    public FConectarse() {
        super();
        alias = "";
        clave = "";

    }
    
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        alias = "";
        clave = "";

    }

    public static FConectarse clear(ActionMapping mapping, HttpServletRequest request) {
        HttpSession sess = request.getSession();
        FConectarse fFConectarse = (FConectarse) sess.getAttribute("FConectarse");
        if (fFConectarse == null) {
            fFConectarse = new FConectarse();
            sess.setAttribute("FConectarse", fFConectarse);
        } else {
            fFConectarse.reset(mapping, request);
        }
        return fFConectarse;
    }

//    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
//        ActionErrors errors = new ActionErrors();
//
//        return errors;
//    }

    /**
     * Holds value of property alias.
     */
    private String alias;

    /**
     * Getter for property alias.
     * @return Value of property alias.
     */
    public String getAlias() {
        return this.alias;
    }

    /**
     * Setter for property alias.
     * @param alias New value of property alias.
     */
    public void setAlias(String alias) {
        this.alias = alias;
    }

    /**
     * Holds value of property clave.
     */
    private String clave;

    /**
     * Getter for property clave.
     * @return Value of property clave.
     */
    public String getClave() {
        return this.clave;
    }

    /**
     * Setter for property clave.
     * @param clave New value of property clave.
     */
    public void setClave(String clave) {
        this.clave = clave;
    }




}